import 'package:flutter/material.dart';
import 'package:house_rental/routes.dart';
class PageContent extends StatelessWidget {
  final String name;

  const PageContent({super.key, required this.name});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('$name'),
        centerTitle: true,
        ),
        body: ListView(children: <Widget>[
          TextButton(onPressed: ()=>{
            Navigator.pushNamed(context, Routes.home)
          }, child: Text(Routes.home)),
          TextButton(onPressed: ()=>{
            Navigator.pushNamed(context, Routes.login)
          }, child: Text(Routes.login)),
          TextButton(onPressed: ()=>{
            Navigator.pushNamed(context, '/room/222')
          }, child: Text(Routes.roomDetail)),
        ],),
    );
  }
}


